home *** CD-ROM | disk | FTP | other *** search
Gui4CLI script | 1980-01-03 | 1.7 KB | 72 lines |
- G4C
-
- ; ----- Uses the ChangeArg command to reset the left, top,
- ; width, height or title of a specimen button.
-
- WinBig -1 -1 300 150 "ChangeArg.gc"
- WinType 11110001
- usetopaz
-
- BOX 0 0 0 0 OUT RIDGE
-
- ; ---- Emphasise the RESET option
- BOX 148 109 84 14 OUT BUTTON
-
- xonLoad
- GuiOpen ChangeArg.gc
-
- xonClose
- GuiQuit ChangeArg.gc
-
- Text 30 6 100 12 'Changing args' 15 NOBOX
-
- ; ---- The button has five arguments, but you need to
- ; consider them as numbers 0, 1, 2, 3, and 4.
- xButton 90 30 120 12 'The Specimen'
- gadid 1
-
- Text 20 60 100 12 'Change...' 10 NOBOX
-
- ; ----- Here are the buttons which trigger the changes.
-
- xButton 50 80 80 12 'Left'
-
- ; ---- In gadid 1, change arg 0 ('Left') to 40
- ; The gui must be redrawn for the change to be visible.
- ChangeArg ChangeArg.gc 1 0 40
- Redraw ChangeArg.gc
-
-
- xButton 150 80 80 12 'Top'
-
- ; ---- Change argument number 1 ('top') to 40, and redraw.
- ChangeArg ChangeArg.gc 1 1 40
- Redraw ChangeArg.gc
-
-
- xButton 50 95 80 12 'Width'
-
- ; ---- Change argument number 2 ('width') to 180, and redraw.
- ChangeArg ChangeArg.gc 1 2 180
- Redraw ChangeArg.gc
-
-
- xButton 150 95 80 12 'Height'
-
- ; ---- Change argument number 3 ('height') to 16, and redraw.
- ChangeArg ChangeArg.gc 1 3 16
- Redraw ChangeArg.gc
-
- xButton 50 110 80 12 'Title'
- ; ---- Change argument number 4 ('title'), and redraw.
- ; Length of new title is padded to length of old.
- ; If new title is to be made longer than the original,
- ; then the original should be padded with spaces to
- ; allow for the extra length.
- ChangeArg ChangeArg.gc 1 4 'New title '
- Redraw ChangeArg.gc
-
- xButton 150 110 80 12 'RESET'
- ChangeGad ChangeArg.gc 1 90 30 120 12 'The Specimen'
- Redraw ChangeArg.gc
-